//============ com.pengesoft.domain.MessageList =============
import {NorDataList, DataPacket} from 'pengesoft-ng-lib';

export class MessageList extends NorDataList<Message> {
    constructor() {
        super();
    }
}
//============ com.pengesoft.domain.Message =============

export class Message extends DataPacket {
    UpdateTime: Date;
    Title: string;
    Content: string;
    SenderId: string;
    ReceiverId: string;
    CreateTime: Date;
    Id: string;
    Page: string;
    State: number;
    constructor(opts: {
        UpdateTime?: Date;
        Title?: string;
        Content?: string;
        SenderId?: string;
        ReceiverId?: string;
        CreateTime?: Date;
        Id?: string;
        Page?: string;
        State?: number;
    } = {}) {
        super();
        this.UpdateTime = opts.UpdateTime || null!;
        this.Title = opts.Title || '';
        this.Content = opts.Content || '';
        this.SenderId = opts.SenderId || '';
        this.ReceiverId = opts.ReceiverId || '';
        this.CreateTime = opts.CreateTime || null!;
        this.Id = opts.Id || '';
        this.Page = opts.Page || '';
        this.State = opts.State || 0;
    }
}

